package com.pany.domain.models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import play.db.jpa.GenericModel;

/**
 * 消费项模型
 * 
 * @author zengjie
 * 
 */
@Entity
@Table(name = "t_tran_type")
public class TranType extends GenericModel
{
    @Id
    private String tranTypeId;
    
    private String tranName;
    
    private Date createTime;
    
    private Double price;
    
    private String creator;
    
    @Transient
    private String creatorName;
    
    private Date lastUpdateTime;
    
    private String lastUpdateUserId;
    
    @Transient
    private String lastUpdateUserName;
    
    public Date getLastUpdateTime()
    {
        return lastUpdateTime;
    }
    
    public void setLastUpdateTime(Date lastUpdateTime)
    {
        this.lastUpdateTime = lastUpdateTime;
    }
    
    public String getLastUpdateUserId()
    {
        return lastUpdateUserId;
    }
    
    public void setLastUpdateUserId(String lastUpdateUserId)
    {
        this.lastUpdateUserId = lastUpdateUserId;
    }
    
    public String getLastUpdateUserName()
    {
        return lastUpdateUserName;
    }
    
    public void setLastUpdateUserName(String lastUpdateUserName)
    {
        this.lastUpdateUserName = lastUpdateUserName;
    }
    
    private String status;
    
    @Transient
    private String statusName;
    
    private Double discount;
    
    private String remark;
    
    public String getTranTypeId()
    {
        return tranTypeId;
    }
    
    public void setTranTypeId(String tranTypeId)
    {
        this.tranTypeId = tranTypeId;
    }
    
    public String getTranName()
    {
        return tranName;
    }
    
    public void setTranName(String tranName)
    {
        this.tranName = tranName;
    }
    
    public Date getCreateTime()
    {
        return createTime;
    }
    
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }
    
    public Double getPrice()
    {
        return price;
    }
    
    public void setPrice(Double price)
    {
        this.price = price;
    }
    
    public String getCreator()
    {
        return creator;
    }
    
    public void setCreator(String creator)
    {
        this.creator = creator;
    }
    
    public String getCreatorName()
    {
        return creatorName;
    }
    
    public void setCreatorName(String creatorName)
    {
        this.creatorName = creatorName;
    }
    
    public String getStatus()
    {
        return status;
    }
    
    public void setStatus(String status)
    {
        this.status = status;
    }
    
    public Double getDiscount()
    {
        return discount;
    }
    
    public void setDiscount(Double discount)
    {
        this.discount = discount;
    }
    
    public String getRemark()
    {
        return remark;
    }
    
    public void setRemark(String remark)
    {
        this.remark = remark;
    }
    
    public String getStatusName()
    {
        return statusName;
    }
    
    public void setStatusName(String statusName)
    {
        this.statusName = statusName;
    }
    
}
